Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@universal-packages/event-emitter
Advanced tools
It extends EventEmitter2
npm install @universal-packages/event-emitter
It behaves exactly as EventEmitter2 but with wildcards enabled by default and following events convention for universal-packages.
import { EventEmitter } from '@universal-packages/event-emitter'
import { startMEasurement } from '@universal-packages/time-measurer'
const measurer = startMeasurement()
const emitter = new EventEmitter()
emitter.on('event', (event) => {
console.log(event)
})
emitter.emit('event', { message: 'Hello World', measurement: measurer.finish(), payload: { foo: 'bar'} })
emitter.emit('error', { error: new Error('Something went wrong'), measurement: measurer.finish(), payload: { foo: 'bar'} })
This library is developed in TypeScript and shipped fully typed.
The development of this library happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving this library.
FAQs
Event emitter 2 with universal convention
The npm package @universal-packages/event-emitter receives a total of 9,669 weekly downloads. As such, @universal-packages/event-emitter popularity was classified as popular.
We found that @universal-packages/event-emitter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.